<template>
  <!--轮播表-->
  <componentBox :id="id" :ref="id" :option="config.location">
    <dv-scroll-board :key="key" :config="option" style="width: 100%;height: 100%"/>
  </componentBox>
</template>

<script>
  export default {
    name: "screen_table",
    components: {
      'componentBox': () => import('@/components/screen/componentBox.vue'),
    },
    props: {
      id: String,
      config: Object,
    },
    data(){
      return{
        option:{},
        key:1,
      }
    },
    computed: {
      //判断是否可以操作dom
      screenMove() {
        return this.$store.state.screenMove
      },

    },
    watch:{
      config:{
        handler(newVal){
          this.option={...this.config.option};
          this.key++;
        },
        deep:true,
      }
    },
    mounted() {
      this.option=this.config.option;
    },
  }
</script>

<style scoped>


</style>
